package com.zj.util.concurrent;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhangbo
 * @program: PDF-helper
 * @ClassName KernelTheadPoolConfig
 * @description: $
 * @date 2023-05-27 23:06:54
 */
@Data
@ConfigurationProperties(prefix = "kernel.pool")
public class KernelPoolConfig {


    /**
     * 核心线程数
     */
    private int corePoolSize;

    /**
     * 最大线程数
     */
    private int maxPoolSize;

    /**
     * 存活时间(秒)
     */
    private int keepAliveSeconds;

    /**
     * 等待队列容量
     */
    private int queueCapacity;

    /**
     * 线程池等待的终止时间
     */
    private int awaitTerminationSeconds;

    /**
     * 线程名字前缀
     */
    private String threadNamePrefix;

}
